package com.elecbook.content.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.elecbook.content.model.dto.CommentPQuery;
import com.elecbook.content.model.dto.CommnetPageDTO;
import com.elecbook.content.model.po.Comment;
import com.elecbook.content.model.vo.CommentVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 评论 Mapper 接口
 * </p>
 *
 * @author Z-ken
 * @since 2024/11/03 22:42:35
 */
public interface CommentMapper extends BaseMapper<Comment> {

    /**
     * description 获取VO信息
     * @author zken
     * @CreateDate 2024/11/12 10:44:40
     */
    Page<CommentVO> selectPageVO(Page<Comment> page, @Param("pageDTO") CommnetPageDTO pageDTO);


    Page<Comment> selectPageEntity(IPage<Comment> page, @Param("query") CommentPQuery query);

}
